<?php
class DailyQuest extends AppModel
{
    public $name = 'DailyQuest';
    public $primaryKey = '_id';

    public function delect_all($_db_name)
    {
        $this->useDbConfig = $_db_name['log'];
        $this->deleteAll(array('_id not' => null));
        return true;
    }

}